Quickstart (setuptools)
pyproject.toml, setup.cfg, setup.py 比較できる
Installation
Basic Use
name
version
install_requires
くわしい各種設定例へのリンクあり
Note that you can still keep most of configuration declarative in setup.cfg or pyproject.toml and use setup.py only for the parts not supported in those files (e.g. C extensions).
setup.pyはどうしても必要な場合を除いて使うべきではない、と理解した